home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Commander Sets / 4D Speech Pack / 4D Speech Pack.rsrc / TEXT_20497_†Embedded commands.txt < prev    next >
Encoding:
Text File  |  1994-09-14  |  1.9 KB  |  30 lines

  1. Embedded Speech Commands
  2.  
  3. For the more advanced users it is also possible to put embedded speech commands in the input text. Below are a few examples to let every character or digit be spoken character by character but it is also possible to set the input mode to phoneme text and then pass raw phoneme text. These commands are included in the phoneme code returned by the SP Voice code function when you pass one (1) in the flag parameter. The returned string then starts with a command to set the input mode to phoneme and at the end sets it back to normal text mode. Passing the string without these commands (to e.g. SP Voice String) causes the Speech Manager to try to read out the code as normal text.
  4. See the Speech Manager documentation for more information. If you use embedded speech commands with any of the functions to speak text, a number of additional errors (listed below) may occure but they are not listed as ‚ÄùPossible errors‚Äú in the Speech Pack Language Reference.
  5.  
  6. Examples:
  7.   `all characters (including digits) in the string in the $line variable
  8.   `are spoken character by character and the setting is restored to 
  9.   `normal speech
  10.   $err := SP Voice String ($speechref;"[[char LTRL]]"+$line+
  11.               "[[char NORM]]")
  12.  
  13.   `all digits in the string in the $line variable are spoken digit by digit
  14.   `and the setting is restored to normal speech
  15.   $err := SP Voice String ($speechref;"[[nmbr LTRL]]"+$line+
  16.                "[[nmbr NORM]]")
  17.  
  18.   `but you may want to set the rate a bit slower first!
  19.  
  20. Embedded Speech Command errors:
  21.   -245  Parameter value is invalid.
  22.   -246  Embedded command syntax or parameter problem.
  23.   -247  Embedded command is not implemented on synthesizer
  24.             (also: Input text bad).
  25.   -248  Raw phoneme text contains invalid characters.
  26.   -250  Specified voice has not been preloaded.
  27.   -252  Incorrect number of embedded command arguments found.
  28.  
  29.  
  30.